package com.shatower.chatctrl.dao.service.impl;

import com.shatower.chatctrl.dao.mapper.FriendMapper;
import com.shatower.chatctrl.dao.pojo.Friend;
import com.shatower.chatctrl.dao.pojo.FriendExample;
import com.shatower.chatctrl.dao.pojo.FriendKey;
import com.shatower.chatctrl.dao.service.FriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by hhggccll on 2017/10/15.
 */
@Service("friendService")
public class FriendServiceImpl implements FriendService {

    @Autowired
    private FriendMapper friendMapper;

    @Override
    public int insertSelective(Friend record) {
        return friendMapper.insertSelective(record);
    }

    @Override
    public List<Friend> selectByExample(FriendExample example) {
        return friendMapper.selectByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(FriendKey key) {
        return friendMapper.deleteByPrimaryKey(key);
    }


}
